<div class='left smooth-panel'>
<h2>Register new user</h2>
<div>
    <form name="registerForm">
        Username (email) <input type="email" ng-model="email" /> <br/>
        Password <input type="password" ng-model="password" /> <br/>
        Password <input type="password" ng-model="password2" /> (re-type)        <br/>        
        Last name <input type="text" ng-model='userinfo.lastname'/><br/>
        First name <input type='text' ng-model='userinfo.firstname'/><br/>
        Phone <input type='text' ng-model='userinfo.phone1'/><br/>
        Phone <input type='text' ng-model='userinfo.permission' value="user" /><br/>
        <button class='btn btn-default btn-xs active' ng-click="signUp()" ng-disabled="registerForm.$invalid" >Register</button>
        <button class='btn btn-default btn-xs active' ng-click="cancel()"  >Cancel</button>
    </form>
</div>
</div>
